package j04zuoye.string1;

import java.util.Scanner;

public class J1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("输入2个字符串:");
        String s1 = sc.nextLine();
        String s2 = sc.nextLine();
        System.out.println("s1==s2:"+(s1==s2));
        System.out.println("s1==s2:"+(s1.equals(s2)));
    }
}
